from django.urls import path,include
from . import views

app_name = 'xfzauth'

urlpatterns = [
    path('login/',views.Login_View.as_view(),name = 'login'),
  	path('register/',views.Register_View.as_view(),name = 'register'),
  	path('logout/',views.logout_view,name = 'logout'),
  	path('cms_index/',views.cms_index,name = 'cms_index'),
  	path('create/',views.create_user,name = 'create'),
  	path('write_news/',views.Add_News_View.as_view(),name = 'cms_write_news'),
  	path('news_category/',views.news_category,name = 'news_category'),
 	path('add_category/',views.Add_Category_View.as_view(),name = 'add_category'),
 	path('edit_category/<category_name>',views.Edit_Category_View.as_view(),name = 'edit_category'),
 	path('delete_category/<category_name>',views.delete_category,name = 'delete_category'),
 	path('news_list/',views.news_list,name = 'news_list'),
 	path('delete_news/<int:new_id>',views.delete_news,name = 'delete_news'),
 	path('staff_list/',views.Staff_List.as_view(),name = 'staff_list'),
 	path('delete_staff/<user_id>',views.delete_staff,name = 'delete_staff'),
]